package entity

type User struct {
	ID           int    `gorm:"column:id;primaryKey"`
	Username     string `gorm:"column:username"`
	Password     string `gorm:"column:password"`
	Nickname     string `gorm:"column:nickname"`
	Email        string `gorm:"column:email"`
	Avatar       string `gorm:"column:avatar"`
	ConfirmEmail bool   `gorm:"column:avatar"`
	IsMuted      bool   `gorm:"column:is_muted"`
}

func (User) TableName() string {
	return "users"
}

type UserChannel struct {
	UserId  int    `gorm:"column:user_id;primaryKey"`
	Channel string `gorm:"column:channel;primaryKey"`
}

func (UserChannel) TableName() string {
	return "user_channel"
}

type UserSetting struct {
	UserId     int    `gorm:"column:user_id;primaryKey"`
	ThemeColor string `gorm:"column:theme_color"`
	FrontSize  int    `gorm:"column:front_size"`
	DarkMode   int    `gorm:"column:dark_mode"`
	UseMode    int    `gorm:"column:use_mode"`
}

func (UserSetting) TableName() string {
	return "user_setting"
}
